import request from '@/utils/request'

export function fetchServiceList(query) {
  return request({
    url: '/makeup/service/list',
    method: 'get',
    params: query
  })
}

export function getServiceInfo(id) {
  return request({
    url: '/makeup/service/info/' + id,
    method: 'get',
  })
}

export function createService(data) {
  return request({
    url: '/makeup/service/save',
    method: 'post',
    data: data
  })
}

export function updateService(data) {
  return request({
    url: '/makeup/service/update',
    method: 'post',
    data: data
  })
}

export function deleteService(data) {
  return request({
    url: '/makeup/service/delete',
    method: 'post',
    data: data
  })
}